function getPage(type) {
    let pageNum = 0;
    let tempNum = $.trim($("#pageNum").val());
    let num = tempNum == null || tempNum == "" ? 1 : parseInt(tempNum);
    num = num < 1 ? 1 : num;//如果当前页数小于一 就是负数，那么就等于第一页 ;ll
    //得到总条数
    let count = $("#pageCount").html();
    let pageCount = count == null || count == "" ? 1 : parseInt(count);
    let size = $.trim($("#pageSize").val());
    let pageSize = size == null || size == "" ? 1 : parseInt(size);
    pageSize = pageSize < 1 ? 10 : pageSize;
    //总页数
    let endpage = Math.ceil(pageCount / pageSize);
    switch (type) {
        case "go":
            if (num > endpage) pageNum = endpage;
            else pageNum = num;
            break;
        case "first":
            pageNum=1;
            break;
        case "last":
            pageNum = num==null||num==""?1:parseInt(num);
            if (pageNum>1){
                pageNum--;
            }
            break;
        case "next":
            pageNum = num==null||num==""?1:parseInt(num);
            if (pageNum<endpage){
                pageNum++;
            }
            break;
        case "end":
            pageNum=Math.ceil(pageCount / pageSize);
            break;
    }
    $("#pageSize").val(pageSize);
    $("#pageNum").val(pageNum);
    findAll();
}